package com.thinkTank.oa.entity;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/***
 * 
 * @author dq
 * @date 2018-07-19
 * 用户类
 *
 */
public class User implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String pid;
	/**
	 * 登录账号
	 */
	@NotNull(message = "账号不能为空")
	@NotEmpty(message="登录账号不能为空")
	private String userName;
	/***
	 * 用户姓名
	 */
	@NotNull(message = "姓名不能为空")
	@NotEmpty(message="姓名不能为空")
	private String 	fullName;
	/***
	 * 密码
	 */
	private String md5;
	/***
	 * 岗位
	 */
	@NotNull(message = "岗位不能为空")
	@NotEmpty(message="岗位不能为空")
	private String post;
	/**
	 * 是否禁用 0 表示禁用  1表示没有禁用 默认为1
	 */
	private Integer disable;
	/***
	 * 用户手机号
	 */
	@NotNull(message = "电话不能为空")
	@NotEmpty(message="电话不能为空")
	private String tell;
	/***
	 * 添加时间，默认为系统当前时间
	 */
	private String addTime;
	@NotNull(message = "入职时间不能为空")
	@NotEmpty(message="入职时间不能为空")
	private String entryTime;
	/**
	 * 备注
	 */
	private String remark;
	/**下载量*/
	private Integer downLoads;


	private List<Role> roles;
	
	private String userPwd;
	/**
	 *  添加用户选择的角色
	 */
	@NotNull(message = "角色不能为空")
	private String  role;
	
	//查看专家的密码
	private String lookPwd;
	//用户免密查看的专家数量和上限，格式:20-40,表示一天可以免密查看20个专家，查看上限40个
	private String lookNumber;
	
	public String getUserPwd() {
		return userPwd;
	}
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMd5() {
		return md5;
	}
	public void setMd5(String md5) {
		this.md5 = md5;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getDisable() {
		return disable;
	}
	public void setDisable(Integer disable) {
		this.disable = disable;
	}
	public String getTell() {
		return tell;
	}
	public void setTell(String tell) {
		this.tell = tell;
	}
	public String getAddTime() {
		return addTime;
	}
	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}
	public String getEntryTime() {
		return entryTime;
	}
	public void setEntryTime(String entryTime) {
		this.entryTime = entryTime;
	}
	public String getPost() {
		return post;
	}
	public void setPost(String post) {
		this.post = post;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public Integer getDownLoads() {
		return downLoads;
	}
	public void setDownLoads(Integer downLoads) {
		this.downLoads = downLoads;
	}
	public String getLookPwd() {
		return lookPwd;
	}
	public void setLookPwd(String lookPwd) {
		this.lookPwd = lookPwd;
	}
	public String getLookNumber() {
		return lookNumber;
	}
	public void setLookNumber(String lookNumber) {
		this.lookNumber = lookNumber;
	}
	

}
